package com.cloudlead.plugin.dict.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EDictGroup is a Querydsl bean type
 */
@Label("字典组")
public class EDictGroup extends AbstractIdEntity<String> {

    private static final long serialVersionUID =3575154509723L;    
    @Label("描述")
    @Size(max=255)
    private String description;

    @Label("编号")
    @Size(max=24)
    @NotNull(groups={UpdateCheck.class})
    private String id;

    @Label("组名")
    @Size(max=255)
    @NotNull
    private String name;

    @Label("父编号")
    @Size(max=24)
    private String pid;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String toString() {
         return String.format("EDictGroup { description : %s,id : %s,name : %s,pid : %s }",description,id,name,pid);
    }

}

